package cn.edu.hstc.wm.ui.fragment;

import android.os.Bundle;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.ListView;
import cn.edu.hstc.wm.ui.base.BaseListFragment;

import cn.edu.hstc.wm.R;

public class TestFragment extends BaseListFragment {
	ListView listView;
	View rootView;

	@Override
	public View onCreateView(LayoutInflater inflater, ViewGroup container,
			Bundle savedInstanceState) {

		rootView = inflater.inflate(R.layout.test, container, false);
		initView();

		return rootView;
	}

	private void initView() {
		// listView = (ListView) rootView.findViewById(R.id.listview);
		// ArrayAdapter<String> adapter = new
		// ArrayAdapter<String>(getActivity(),
		// android.R.layout.simple_list_item_1, getAll());
		// listView.setAdapter(adapter);
	}

	@Override
	public void onActivityCreated(Bundle savedInstanceState) {
		// TODO Auto-generated method stub
		super.onActivityCreated(savedInstanceState);
	}

	// public List<String> getAll() {
	//
	// List<Category> list = null;
	// List<String> datas = new ArrayList<String>();
	// CategoryService categoryService = new CategoryServiceService()
	// .getCategoryServicePort();
	//
	// try {
	// list = categoryService.getCategories();
	// } catch (Exception_Exception e) {
	// CustomToast.make(getActivity()).setText("erroe").show();
	// e.printStackTrace();
	// }
	// for (int i = 0; i < list.size(); i++) {
	// datas.add(list.get(i).getName());
	// }
	// return datas;
	// }
}
